// 引入文件
import { createRouter, createWebHistory } from 'vue-router'

// 引入组件
import Home from '../views/Home.vue'
import College from '../views/college/index.vue'
import Student from '../views/student/index.vue'

const routes = [
    {
        path: '/',
        name: 'Home',
        component: Home
    },
    {
        path: '/home',
        name: 'Home',
        component: Home
    },
    {
        path: '/college',
        name: 'College',
        component: College
    },    {
        path: '/student',
        name: 'Student',
        component: Student
    },
]

// 创建路由实例
const router = createRouter({
    routes,
    history: createWebHistory()
})

export default router